package com.itheima.date8;

import java.time.LocalDateTime;
import java.time.Month;

public class Demo02 {
    public static void main(String[] args) {

        LocalDateTime now = LocalDateTime.now();
        System.out.println(now.getYear());
        Month month = now.getMonth();
        System.out.println(month);
        int monthValue = now.getMonthValue();
        System.out.println(monthValue);
        System.out.println(now.getDayOfYear());
        System.out.println(now.getDayOfMonth());
        System.out.println(now.getDayOfWeek());
        System.out.println(now.getHour());
        System.out.println(now.getMinute());
        System.out.println(now.getSecond());
    }
}
